package com.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.entity.ExamChoose;
import com.chen.vo.ExamChooseVO;

import java.util.List;

/**
 * 考试中已选择的记录
 */
public interface ExamChooseService extends IService<ExamChoose> {

    /**
     * 查询学生答题记录，用于回显数据
     * @param studentId
     * @param examPaperId
     * @return
     */
    public List<ExamChooseVO> getChooseInfoWithSumScore(Integer studentId, Integer examPaperId);

    /**
     * 记录答题
     * @param studentId
     * @param examPaperId
     * @param subjectId
     * @param chooseAswer 回答的答案
     * @return
     */
    public void recordAnswer(Integer studentId, Integer examPaperId, Integer subjectId, String chooseAswer);

}
